package com.example.SocialApplication.activity.things.fragments;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;

import com.example.SocialApplication.R;
import com.example.SocialApplication.adapters.ThingsAdapter;

import java.util.ArrayList;

public class MyOwnThingsFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.own_things_fragment, container, false);

        GridView grid = (GridView) rootView.findViewById(R.id.gridView);

        ArrayList<Integer> list = new ArrayList<Integer>();
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);
        list.add(R.drawable.things);

//        ThingsAdapter thingsAdapter = new ThingsAdapter(getActivity(), R.layout.gallery_item, list);
//        grid.setAdapter(thingsAdapter);
        return rootView;
    }
}
